/*
 * GlobalVars.h
 *
 *  Created on: Apr 3, 2013
 *      Author: root
 */

#ifndef GLOBALVARS_H_
#define GLOBALVARS_H_

#define mm 25.4


class GlobalVars{
public:
	int** Blocks;
	int** BlockCords;
	int** SeaLoc;
	int** RailLoc;
	int** AirLoc;
	int* Air;
	int* Sea;
	int* Rail;
	int* seaDegree;
	int* railDegree;
	int* airDegree;
	int* SeaLoadingZone;
	int* RailLoadingZone;
	int TurretDegree;
	int posX;
	int posY;
	bool debug;
	bool debug1;

GlobalVars(){
	Blocks = new int*[14];
	BlockCords = new int*[14];
	SeaLoc = new int*[6];
	RailLoc = new int*[6];
	AirLoc = new int*[2];
	Air = new int[2];
	Sea = new int[6];
	Rail = new int[6];
	seaDegree = new int[6];
	railDegree = new int[6];
	airDegree = new int[2];
	SeaLoadingZone=new int[2];
	RailLoadingZone=new int[2];
	for(int x=0;x<14;x++){
			Blocks[x] = new int[2];
			BlockCords[x] = new int[2];
		}
		for(int x=0;x<6;x++){
			SeaLoc[x] = new int[2];
			RailLoc[x] = new int[2];
		}
		for(int x=0;x<2;x++){
			AirLoc[x] = new int[2];
		}

		for(int x=0;x<14;x++){
			BlockCords[x][0] = 0 + (x * 74);
			BlockCords[x][1] = 320;
		}
		for(int x=0;x<6;x++){
			railDegree[x] = 0;
			seaDegree[x] = 0;
			SeaLoc[x][0] = 13 * mm;
			SeaLoc[x][1] = ((23*mm) + (x * 74));
			RailLoc[x][0] = ((45*mm) + (x * 74));
			RailLoc[x][1] = 15 * mm;
		}
		for(int x=0;x<2;x++){
			airDegree[x] = 0;
			AirLoc[x][0] = 100;
			AirLoc[x][1] = 100;
		}
		SeaLoadingZone[0] = 0;
		SeaLoadingZone[1] = 400;
		RailLoadingZone[0] = 800;
		RailLoadingZone[1] = 400;
		TurretDegree = 180;
		posX = 0;
		posY = 0;
		debug = false;
		debug1 = false;
}

void setPos(int x,int y=-1){
	posX = x;
	if(y!=-1)
		posY = y;
}


};


#endif /* GLOBALVARS_H_ */
